package com.glsc.ngateway.common.base.domain.mysql.opmanage.report.regulatory;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.glsc.ngateway.common.base.utils.ExcelDoubleConverter;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;
import java.math.BigInteger;
import java.util.Objects;

/**
 * @author: qiyr
 * @date: 2022/8/31 9:48
 * @description: 江苏省证券业协会信息管理系统实体类
 */
@Data
@Entity
@Table(name = "t_reg_rpt_sajs_ims")
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties({"hibernateLazyInitializer", "handler"})
@ExcelIgnoreUnannotated
@IdClass(RegRptSAJSIMS.PK.class)
public class RegRptSAJSIMS {
    public static class PK implements Serializable {
        private BigInteger mainId;
        private Integer rowId;

        public BigInteger getMainId() {
            return mainId;
        }

        public void setMainId(BigInteger mainId) {
            this.mainId = mainId;
        }

        public Integer getRowId() {
            return rowId;
        }

        public void setRowId(Integer rowId) {
            this.rowId = rowId;
        }

        @Override
        public boolean equals(Object o) {
            if (this == o) {
                return true;
            }
            if (o == null || getClass() != o.getClass()) {
                return false;
            }
            PK pk = (PK) o;
            return Objects.equals(mainId, pk.mainId) && Objects.equals(rowId, pk.rowId);
        }

        @Override
        public int hashCode() {
            return Objects.hash(mainId, rowId);
        }
    }

    @Id
    @Column(name = "main_id")
    private BigInteger mainId;

    @Id
    @Column(name = "row_id")
    private Integer rowId;

    @ExcelProperty(index = 1, converter = ExcelDoubleConverter.class)
    @Column(name = "scale")
    private Double scale;

    @ExcelProperty(index = 2, converter = ExcelDoubleConverter.class)
    @Column(name = "dsf_yh")
    private Double dsfYh;

    @ExcelProperty(index = 3, converter = ExcelDoubleConverter.class)
    @Column(name = "dsf_zq")
    private Double dsfZq;

    @ExcelProperty(index = 4, converter = ExcelDoubleConverter.class)
    @Column(name = "dsf_hbjj")
    private Double dsfHbjj;

    @ExcelProperty(index = 5, converter = ExcelDoubleConverter.class)
    @Column(name = "dsf_qtjj")
    private Double dsfQtjj;

    @ExcelProperty(index = 6, converter = ExcelDoubleConverter.class)
    @Column(name = "dsf_bx")
    private Double dsfBx;

    @ExcelProperty(index = 7, converter = ExcelDoubleConverter.class)
    @Column(name = "dsf_xt")
    private Double dsfXt;

    @ExcelProperty(index = 8, converter = ExcelDoubleConverter.class)
    @Column(name = "dsf_qt")
    private Double dsfQt;

    @ExcelProperty(index = 9, converter = ExcelDoubleConverter.class)
    @Column(name = "zqlx_llz")
    private Double zqlxLlz;

    @ExcelProperty(index = 10, converter = ExcelDoubleConverter.class)
    @Column(name = "zqlx_aaa")
    private Double zqlxAAA;

    @ExcelProperty(index = 11, converter = ExcelDoubleConverter.class)
    @Column(name = "zqlx_aaa_yx")
    private Double zqlxAAAYx;

    @ExcelProperty(index = 12, converter = ExcelDoubleConverter.class)
    @Column(name = "jycs_yhj")
    private Double jycsYhj;

    @ExcelProperty(index = 13, converter = ExcelDoubleConverter.class)
    @Column(name = "jycs_jys")
    private Double jycsJys;

    @ExcelProperty(index = 14, converter = ExcelDoubleConverter.class)
    @Column(name = "qxlv_gy_scale")
    private Double qxlvGyScale;

    @ExcelProperty(index = 15, converter = ExcelDoubleConverter.class)
    @Column(name = "qxlv_2_14_scale")
    private Double qxlv2To14Scale;

    @ExcelProperty(index = 16, converter = ExcelDoubleConverter.class)
    @Column(name = "qxlv_gy")
    private Double qxlvGy;

    @ExcelProperty(index = 17, converter = ExcelDoubleConverter.class)
    @Column(name = "qxlv_2_14")
    private Double qxlv2To14;

    @ExcelProperty(index = 18, converter = ExcelDoubleConverter.class)
    @Column(name = "qxlv_14_scale")
    private Double qxlv14Scale;

    @ExcelProperty(index = 19, converter = ExcelDoubleConverter.class)
    @Column(name = "qxlv_14")
    private Double qxlv14;

    public BigInteger getMainId() {
        return mainId;
    }

    public void setMainId(BigInteger mainId) {
        this.mainId = mainId;
    }

    public Integer getRowId() {
        return rowId;
    }

    public void setRowId(Integer rowId) {
        this.rowId = rowId;
    }

    public Double getScale() {
        return scale;
    }

    public void setScale(Double scale) {
        this.scale = scale;
    }

    public Double getDsfYh() {
        return dsfYh;
    }

    public void setDsfYh(Double dsfYh) {
        this.dsfYh = dsfYh;
    }

    public Double getDsfZq() {
        return dsfZq;
    }

    public void setDsfZq(Double dsfZq) {
        this.dsfZq = dsfZq;
    }

    public Double getDsfHbjj() {
        return dsfHbjj;
    }

    public void setDsfHbjj(Double dsfHbjj) {
        this.dsfHbjj = dsfHbjj;
    }

    public Double getDsfQtjj() {
        return dsfQtjj;
    }

    public void setDsfQtjj(Double dsfQtjj) {
        this.dsfQtjj = dsfQtjj;
    }

    public Double getDsfBx() {
        return dsfBx;
    }

    public void setDsfBx(Double dsfBx) {
        this.dsfBx = dsfBx;
    }

    public Double getDsfXt() {
        return dsfXt;
    }

    public void setDsfXt(Double dsfXt) {
        this.dsfXt = dsfXt;
    }

    public Double getDsfQt() {
        return dsfQt;
    }

    public void setDsfQt(Double dsfQt) {
        this.dsfQt = dsfQt;
    }

    public Double getZqlxLlz() {
        return zqlxLlz;
    }

    public void setZqlxLlz(Double zqlxLlz) {
        this.zqlxLlz = zqlxLlz;
    }

    public Double getZqlxAAA() {
        return zqlxAAA;
    }

    public void setZqlxAAA(Double zqlxAAA) {
        this.zqlxAAA = zqlxAAA;
    }

    public Double getZqlxAAAYx() {
        return zqlxAAAYx;
    }

    public void setZqlxAAAYx(Double zqlxAAAYx) {
        this.zqlxAAAYx = zqlxAAAYx;
    }

    public Double getJycsYhj() {
        return jycsYhj;
    }

    public void setJycsYhj(Double jycsYhj) {
        this.jycsYhj = jycsYhj;
    }

    public Double getJycsJys() {
        return jycsJys;
    }

    public void setJycsJys(Double jycsJys) {
        this.jycsJys = jycsJys;
    }

    public Double getQxlvGyScale() {
        return qxlvGyScale;
    }

    public void setQxlvGyScale(Double qxlvGyScale) {
        this.qxlvGyScale = qxlvGyScale;
    }

    public Double getQxlv2To14Scale() {
        return qxlv2To14Scale;
    }

    public void setQxlv2To14Scale(Double qxlv2To14Scale) {
        this.qxlv2To14Scale = qxlv2To14Scale;
    }

    public Double getQxlvGy() {
        return qxlvGy;
    }

    public void setQxlvGy(Double qxlvGy) {
        this.qxlvGy = qxlvGy;
    }

    public Double getQxlv2To14() {
        return qxlv2To14;
    }

    public void setQxlv2To14(Double qxlv2To14) {
        this.qxlv2To14 = qxlv2To14;
    }

    public Double getQxlv14Scale() {
        return qxlv14Scale;
    }

    public void setQxlv14Scale(Double qxlv14Scale) {
        this.qxlv14Scale = qxlv14Scale;
    }

    public Double getQxlv14() {
        return qxlv14;
    }

    public void setQxlv14(Double qxlv14) {
        this.qxlv14 = qxlv14;
    }
}

